package light.head.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 相册
 */
@Entity
@Table
public class Album implements Serializable {
	
	
	private static final long serialVersionUID = 6953660522391007277L;
	
	
	private Integer code;
	private String name;						// 名称
	private Date ct;							// 创建时间
	private Integer cu;							// 创建人
	private String remark;						// 备注
	private Boolean deleted = false;					// 是否删除
	private Integer oc;							// 所属机构
	private String uuid;						// 封面路径
	private List<Photo> photoList;
	
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	@Column(length = 50)
	public String getName() {
		return name;
	}
	@Column
	public Date getCt() {
		return ct;
	}
	@Column
	public Integer getCu() {
		return cu;
	}
	@Column
	public Boolean getDeleted() {
		return deleted;
	}
	@Column(length = 200)
	public String getRemark() {
		return remark;
	}
	@Column
	public Integer getOc() {
		return oc;
	}
	@Column
	public String getUuid() {
		return uuid;
	}
	@Transient
	public List<Photo> getPhotoList() {
		return photoList;
	}
	
	
	
	
	
	
	
	
	
	

	public void setPhotoList(List<Photo> photoList) {
		this.photoList = photoList;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public void setOc(Integer oc) {
		this.oc = oc;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setCt(Date ct) {
		this.ct = ct;
	}
	public void setCu(Integer cu) {
		this.cu = cu;
	}
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}
	

}
